.class public Lcom/estrongs/android/ui/preference/DirChoosePreference;
.super Landroidx/preference/EditTextPreference;
.source "DirChoosePreference.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z

.field c:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;)V

    const/4 p1, 0x0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->b:Z

    const/4 p1, 0x0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->c:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const v0, 0x1010092

    .line 4
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/preference/DirChoosePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    .line 5
    invoke-direct {p0, p1, p2, p3}, Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p3, 0x0

    .line 6
    iput-boolean p3, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->b:Z

    const/4 v0, 0x0

    .line 7
    iput-object v0, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->c:Ljava/lang/String;

    .line 8
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->a:Landroid/content/Context;

    .line 9
    sget-object v0, Lcom/estrongs/android/pop/n;->DirChoosePreference:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 10
    invoke-virtual {p1, p3, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->b:Z

    .line 11
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 7

    .line 1
    sget-boolean v0, Lcom/estrongs/android/pop/j;->n:Z

    if-nez v0, :cond_0

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->b:Z

    :cond_0
    move v6, v0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->k1()Z

    move-result v0

    .line 4
    new-instance v4, Lcom/estrongs/android/ui/preference/DirChoosePreference$a;

    invoke-direct {v4, p0, v0}, Lcom/estrongs/android/ui/preference/DirChoosePreference$a;-><init>(Lcom/estrongs/android/ui/preference/DirChoosePreference;Z)V

    .line 5
    new-instance v0, Lcom/estrongs/android/widget/c;

    invoke-virtual {p0}, Landroidx/preference/Preference;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {p0}, Landroidx/preference/EditTextPreference;->getText()Ljava/lang/String;

    move-result-object v3

    const/4 v5, 0x1

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/widget/c;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/estrongs/fs/h;ZZ)V

    .line 6
    invoke-virtual {p0}, Landroidx/preference/Preference;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110299

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 7
    invoke-virtual {p0}, Landroidx/preference/Preference;->getTitle()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;)V

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/preference/DirChoosePreference;->a:Landroid/content/Context;

    const v2, 0x7f11029e

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/estrongs/android/ui/preference/DirChoosePreference$b;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/preference/DirChoosePreference$b;-><init>(Lcom/estrongs/android/ui/preference/DirChoosePreference;Lcom/estrongs/android/widget/c;)V

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/widget/c;->b(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 9
    new-instance v1, Lcom/estrongs/android/ui/preference/DirChoosePreference$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/preference/DirChoosePreference$c;-><init>(Lcom/estrongs/android/ui/preference/DirChoosePreference;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/widget/c;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 10
    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->n()V

    return-void
.end method
